<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="inc/CheckLogin.jsp" %>
<%@taglib uri="/struts-tags" prefix="s"  %>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
<title>下载服务器管理</title>
<link type="text/css" rel="stylesheet" href="images/style.Css">
</head>
<body style="font-size: 13px;">

	<table cellspacing="1" cellpadding="3" border="0" bgcolor="#E1E1E1" width="100%" class="css_table">
	<tbody><tr class="css_menu" align="center">
	<td colspan="5"><table cellspacing="0" cellpadding="4" border="0" width="100%" class="css_main_table">
	<tbody><tr>
	<td class="css_main"><a href="Admin_Server.Asp">下载服务器管理</a></td>
	<td class="css_search">...</td>
	</tr>
	</tbody></table></td>
	</tr>
	<tr align="center">
	<td class="css_top">名字</td>
	<td class="css_top">链接信息</td>
	<td class="css_top">修改删除</td>
	</tr>
	<s:iterator value="page.data"  var="s">
		<form action="downAction!update.do" method="post">
	<tr>
	<td class="css_list">
    <input type="hidden" name="did" value='<s:property value="#s.did"/>'/>
	<input type="text" value=<s:property value="#s.dname"/> size="10" name="dname"></td>
	<td class="css_list"><input type="text" value=<s:property value="#s.dvalue"/>  size="30" name="dvalue"></td>
	<td class="css_list"><input type="submit" value="修改"> <input type="button" value="删除" onclick="if(confirm('删除功能禁用?')){location.href='downAction!del.do?did=<s:property value="#s.did"/>';}" name="delete"></td>
	</form>
	</tr>

	</s:iterator>
	

	
	
	
	<tr><td colspan="3">新增:</td></tr>
	<form action="downAction!save.do" method="post">
	<tr>
	<td class="css_list">
	<input type="text" value="" size="10" name="dname"></td>
	<td class="css_list"><input type="text" value="" size="30" name="dvalue"></td>
	<td class="css_list"><input type="submit" value="增加"></td>
	</tr>
	</form>
	<tr class="css_page_list">
	<td colspan="3">
	<form action="downAction!findPage.do" method="post" name="frmData">
		                                  <s:hidden name=""></s:hidden>
 <font color="red">
            <s:property
														value="page.totalCount" /> </font> </b>条记录- 分
											<b><font color="red"><s:property
														value="page.totalPage" /> </font> </b>页 - 这是第
											<b><font color="red"><s:property
														value="page.curPage" /> </font> </b>页&nbsp; | &nbsp;
											<a onClick="first()" href="#">首页</a>&nbsp;
											<a onClick="prev()" href="#">前一页</a>&nbsp;
											<a onClick="next()" href="#">后一页</a>&nbsp;
											<a onClick="last()" href="#">末页</a>&nbsp; | &nbsp; 到第
											<input id="page.curPage" name="page.curPage" type="text"
												size="4" maxlength="4" style='width: 30px; height: 18px;'
												value="<s:property value="page.curPage"/>"
												onKeyUp="onlyNum();">
											<input type="submit" value="跳转" class=mmBtn />
											<input type="hidden" name="page.pageSize"
												value="<s:property value="page.pageSize"/>" />
											<input type="hidden" name="totalPage"
												value="<s:property value="page.totalPage"/>" />
												</form>
													<script type="text/javascript" src="<%=basePath %>js/list.js"></script>
	</td>
	</tr>
	</tbody></table>
	

</body></html>